#!/bin/bash
#Update CentOS 6.x kernel to 3.10 and install docker

###Step One:Update kernel to 3.10
yum update -y
cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
yum -y install kernel-ml-aufs kernel-ml-aufs-devel
sed -i 's/default=1/default=0/g' /etc/grub.conf
reboot now

###Step Two:Install docker with the official script

grep aufs /proc/filesystems
curl -sSL https://get.docker.com/ | sh